package com.xvyy.tingshu.account.client;

import com.xvyy.tingshu.account.client.impl.UserAccountDegradeFeignClient;
import com.xvyy.tingshu.common.result.Result;
import com.xvyy.tingshu.model.account.RechargeInfo;
import com.xvyy.tingshu.vo.account.AccountLockResultVo;
import com.xvyy.tingshu.vo.account.AccountLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>
 * 产品列表API接口
 * </p>
 *
 * @author qy
 */
@FeignClient(
        path = "/api/rpc/userAccount",
        contextId = "userAccountFeignClient",
        value = "service-account",
        fallback = UserAccountDegradeFeignClient.class)
public interface UserAccountFeignClient {

    @PostMapping("/checkAndLockAccount")
    Result<AccountLockResultVo> checkAndLockAccount(@RequestBody AccountLockVo accountLockVo);

    @PostMapping("/getRechargeInfoByOrder")
    Result<RechargeInfo> getRechargeInfoByOrder(@PathVariable(value = "orderNo") String orderNo);
}